//
//  UITextField+category.m
//  PantaKill
//
//  Created by 湛凯杰 on 16/7/28.
//  Copyright © 2016年 湛凯杰. All rights reserved.
//

#import "UITextField+category.h"

@implementation UITextField (category)
/**
 *  <#Description#>
 *
 *  @param placeholder     提示文字
 *  @param secureTextEntry 是否出现XX
 *
 *  @return 
 */
-(instancetype)initTypeOfLonginWithPlaceholder:(NSString*)placeholder AndSecureTextEntry:(BOOL)secureTextEntry AndCornerRadius:(CGFloat)CornerRadius{
    self=[super init];
    if (self) {
        [self.layer setMasksToBounds:YES];
        [self.layer setCornerRadius:CornerRadius];
        [self.layer setBorderWidth:0];
        [self setBackgroundColor:[UIColor whiteColor]];
        self.textAlignment=NSTextAlignmentCenter;
        self.clearButtonMode=UITextFieldViewModeAlways;
        self.placeholder=placeholder;
        self.secureTextEntry=secureTextEntry;
    }return self;
}
@end
